<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>8.3. Update REC-RPL</title>
		<link type="text/css" rel="stylesheet" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css"/>
	</head>
	<body>
		<h1 id="Updates_Between_REC_and_RPL">Updates Between REC and RPL</h1>
		<h2 id="Update_of_a_REC_from_its_SOURCE">Update of a REC from its SOURCE</h2>
		<p>Perform a change on elements that are part of the REC. Here, a Function and two Functional Exchanges are added.</p>
		<p>
			<img height="231" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_5cad7f32.png"/>
		</p>
		<p>Select at least one original element of the REC and from the contextual menu, choose &lsquo;Update REC from selection&rdquo;</p>
		<p>
			<img height="111" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_518bd489.png"/>
		</p>
		<table border="1">
			<tr>
				<td>
					<p>
						<img height="48" width="48" border="0" src="Images/InfoIcon.png"/>
					</p>
				</td>
				<td>
					<p>The Semantic Browser can be useful to identify the selection of the right REC.</p>
				</td>
			</tr>
		</table>
		<p>The REC definition dialog appears, including the new elements</p>
		<p>
			<img height="801" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_2e9a447c.png"/>
		</p>
		<p>Click on OK. This will open the DiffMerge view. Press 'Apply' to update the rec to include all additional changes to the REC (additional information about this dialog is available in the Model DiffMerge section)
			.</p>
		<p>
			<img title="912x392" alt="912x392" border="0" src="Images/8.3.update_rec_from_rec_merge.png"/>
		</p>
		<p>A merge impact dialog will open. This dialog displays the applied changes. Press OK to apply the changes and close the merge view or Cancel
			to discard changes and return to the merge view.</p>
		<p>
			<img title="518x592" alt="518x592" border="0" src="Images/8.3.update_rec_from_rec_merge_impact.png"/>
		</p>
		<p>Validate the new REC content and check the result in the Semantic Browser for example.</p>
		<p>
			<img height="200" width="750" border="0" src="Images/8.3.%20Update%20REC-RPL_html_57991499.png"/>
		</p>
		<h3 id="Add.2Fremove_suffix_on_elements_of_the_REC">Add/remove suffix on elements of the REC</h3>
		<p>In the wizard "Update REC from selection" select one or more REC elements and press the button available on the right side of the wizard.</p>
		<p>
			<img height="90" width="81" border="0" src="Images/8.3.%20add_remove_suffix.png"/>
		</p>
		<p>It is also possible to do the same via properties view by selecting "Catalog Element Link" contained by REC in Project Explorer.</p>
		<p>
			<img height="136" width="255" border="0" src="Images/8.3.%20add_remove_suffix_via_properties_view.png"/>
		</p>
		<h2 id="Update_of_a_RPL_from_its_REC">Update of a RPL from its REC</h2>
		<p>Select a RPL element and in the contextual menu:</p>
		<p>
			<img height="154" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_m2fb5616b.png"/>
		</p>
		<table border="1">
			<tr>
				<td>
					<p>
						<img height="48" width="48" border="0" src="Images/InfoIcon.png"/>
					</p>
				</td>
				<td>
					<p>The Semantic Browser can be useful to check if the selection is about the right RPL associated with the right REC.
						<br/>
						The contextual menu is also available directly on the RPL in the Semantic Browser.
					</p>
				</td>
			</tr>
		</table>
		<p>The REC instantiation wizard opens and in the left tree, the new elements appear.</p>
		<p>
			<img height="409" width="357" border="0" src="Images/8.3.%20Update%20REC-RPL_html_m1039a7d0.png"/>
		</p>
		<p>Perform modifications if needed (e.g. choosing specific locations for the new elements, modifying the suffix) and click on OK. This will open the merge dialog. Select 'Apply' to update the RPL with additional changes or merge selected changes individually. Confirm the following merge impact dialog to perform the update.</p>
		<p>If the suffix is modified, all elements that are intended to be renamed will be updated to have the name of the corresponding REC element with the new suffix. Similarly, if a REC element was renamed, the corresponding RPL elements will be updated with the new REC name and the current RPL suffix. Also, if an existing element has no suffix but its corresponding REC element was marked as having to be renamed, it will be updated with the RPL suffix.</p>
		<p>Update the diagram to see the result.</p>
		<p>
			<img height="208" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_25dc09c.png"/>
		</p>
		<h2 id="Update_of_a_REC_from_its_RPL">Update of a REC from its RPL</h2>
		<p>Perform a few modifications on elements belonging to a RPL.</p>
		<p>
			<img height="290" width="360" border="0" src="Images/8.3.%20Update%20REC-RPL_html_2b539e6f.png"/>
		</p>
		<p>From the contextual menu, select:</p>
		<p>
			<img height="114" width="627" border="0" src="Images/8.3.%20Update%20REC-RPL_html_m41eba791.png"/>
		</p>
		<table border="1">
			<tr>
				<td>
					<p>
						<img height="48" width="48" border="0" src="Images/InfoIcon.png"/>
					</p>
				</td>
				<td>
					<p>The Semantic Browser can be useful to check if the selection is about the right RPL associated with the right REC.
						<br/>
						The contextual menu is also available directly on the RPL in the Semantic Browser.
					</p>
				</td>
			</tr>
		</table>
		<p>This opens the REC definition dialog. The changes are visible in the tree.</p>
		<p>
			<img height="607" width="622" border="0" src="Images/8.3.%20Update%20REC-RPL_html_4875b314.png"/>
		</p>
		<p>From here, the behavior is the same as when the definition update was created directly from the REC elements.</p>
	</body>
</html>